<template>
  <!-- 当前文件只用于项目架构 -->
  <div id="layout_app">
    <div class="left">
      <h1>优就业</h1>
      <ul class="nav">
        <li class="nav-item">
          <router-link to="/index">首页展板</router-link>

        </li>
        <li class="nav-item">
          <router-link to="/classes">课程管理</router-link>
        </li>
        <li class="nav-item">班级管理</li>
        <li class="nav-item">考试管理</li>
        <li class="nav-item">师资管理</li>
      </ul>
    </div>
    <div class="right">
      <div class="top">
        <div class="userinfo">
          <img src="../assets/phone.jpg" alt="" /><span>边进辉</span>
        </div>
      </div>
      <div class="content">
        <router-view />
      </div>
      <div class="bottom"></div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
#layout_app {
  display: flex;
  box-sizing: border-box;
}
.left {
  width: 200px;
  height: 100vh;
  background-color: #2a303e;
  box-sizing: border-box;
}
.left > h1 {
  color: white;
  line-height: 58px;
  text-align: center;
  background-color: #4d678d;
}
.nav a{
  text-decoration: none;
  color: white;
}

.right {
  flex: 1;
  height: 100vh;
  background-color: #eeeff3;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  justify-content: center;
}
.top,
.bottom {
  height: 70px;
  background-color: #3d4a5d;
  box-sizing: border-box;
}
.content {
  height: 100%;
  background-color: #f5f5f5;
  box-sizing: border-box;
}
.nav {
  padding-top: 50px;
}
.nav-item {
  height: 70px;
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-align: center;
  line-height: 70px;
}
.nav-item:hover {
  background-color: #3b3e4d;
}
.top {
  display: flex;
  flex-direction: row-reverse;
}
.userinfo {
  min-width: 150px;
  height: 58px;

  line-height: 58px;
  color: white;
}
.userinfo > img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
}
.userinfo > span {
  display: inline-block;
  text-indent: 10px;
}
</style>